var eleQuery = document.querySelector(".query");

eleQuery.querySelector("input[type=button]").addEventListener("click", function() {
	eleQuery.className = "query";
});

eleQuery.querySelector("input[type=text]").addEventListener("focus", function() {
	eleQuery.className = "query show";
});